home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Wed, 07 Feb 96 21:14:54 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: ds.l
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.4co1@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 06 Feb 96 Grzegorz Calkowski wrote to All:
-
- GC>> Patrik Nilsson (patrik.nilsson@mbox3.swipnet.se) wrote:When using
- GC>> FileInfoBlock it must be long word aligned.Q: In asm you have 'ds.l'.
- GC>> Is there any equal in C?
-
- GC> You're wrong!! FIB must be on 8 bytes boundary, not 4 bytes! The best
- GC> way to achieve that is to use AllocDosObject(), which returns an
- GC> allocated & initialized fib for you.
-
- You're the one who's wrong. FIBs should be located at 4 byte boundaries. The
- reason for this is simple, as a FIB has to be referenced to with BPTRs, which
- can only point to LONG-aligned addresses.
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-